<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'User_PwdEdit.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="css/style.css">
		<SCRIPT>
	function black()
	{
		 if(document.pwdform.oldPwd.value=="")
		 {
			 alert("请您填入原始密码！");
			 return false;
		 }
		 else if(document.pwdform.newPwd.value=="")
		 {
			 alert("对不起，你的第一次密码为空！")
			 return false;
		 }
		  else if(document.pwdform.newRePwd.value=="")
		 {
			 alert("对不起，你的确认密码为空！")
			 return false;
		 }
		 else if(document.pwdform.newPwd.value!=document.pwdform.newRePwd.value)
		 {
			 alert("对不起，你的两次输入密码不正确");
			 return false;
		 }
		else 
		{   document.pwdform.action="UpdatePwd";
			document.pwdform.submit();
		 }
	}
	</SCRIPT>
	<link rel="stylesheet" href="css/style.css" type="text/css"></link>
	</head>
	

	<body>
		<center>
			<div id="top">
				<%@ include file="top.jsp"%>
			</div>
			<div id="center">
				<div id="centerleft">
					<img src="image/1-home_07.gif" border="0" />
					<div id="menulist">
						<!--功能菜单开始-->
						<%@ include file="User_left.jsp"%>
						<!--功能菜单结束-->
					</div>
					<img src="image/1-home_02.gif" border="0" id="i2" />
				</div>
				<div id="centerright">
					<div id="guide">
						<s:text name="guideEditePwd"></s:text>
					</div>
					<div id="main">
						<!--功能开始-->
						<s:form name="pwdform">
							<table>
								<caption>
									<h2 class="pwdPagefont">
										<s:text name="titleEditePwd"></s:text>
									</h2>
								</caption>
								<tr>
									<td>
										<s:text name="titleEditePwd"/>：
									</td>
									<td>
										${session.UserLogin.userName}
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="oldpwd"/>：
									</td>
									<td>
										<s:password name="oldPwd" />
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="newpwd"/>：
									</td>
									<td>
										<s:password name="newPwd" />
									</td>
								</tr>
								<tr>
									<td>
										<s:text name="pwd2"/>：
									</td>
									<td>
										<s:password name="newRePwd" />
									</td>
								</tr>
							</table>
							<tr>
									<td>
										<s:submit key="submit"/>
									</td>
									<td>
										<s:submit key="reset"/>
									</td>
								</tr>
						</s:form>
						<div align="center"></div>
					</div>
				</div>
				<div style="clear: both"></div>
			</div>
		</center>
	</body>
</html>
